package com.xiaominfo.oss.module.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author lien
 * @Date 2019/12/24 17:12
 * @Description oss项目描述对象
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("oss_information")
public class OSSInformation extends Model<OSSInformation> {


    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 根目录
     */
    private String root;

    /**
     * 程序执行目录
     */
    @TableField(value = "invoking_root")
    private String invokingRoot;

    /**
     * nginx日志目录
     */
    @TableField(value = "nginx_log_path")
    private String nginxLogPath;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private String createTime;

    /**
     * 修改时间
     */
    @TableField(value = "modified_time")
    private String modifiedTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
